package com.zcn.io.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zcn.io.common.entity.TrusteeshipDetail;
import com.zcn.io.common.query.TrusteeshipDetailQuery;
import com.zcn.io.web.api.vo.TrusteeshipDetailVo;
import com.zcn.io.web.api.entity.Maintenance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @desc:
 * @author: 202438 邱建伟
 * @date: 2024/10/2 15:48
 * @Copyright (c) 2024, 江苏金恒信息科技股份有限公司
 */
@Mapper
public interface TrusteeshipDetailMapper extends BaseMapper<TrusteeshipDetail> {

    IPage<TrusteeshipDetailVo> list(Page<TrusteeshipDetailVo> page, TrusteeshipDetailQuery query);

    List<TrusteeshipDetailVo> listAllByOrderId(String orderId);

    void saveInfo(@Param("entity") TrusteeshipDetail trusteeshipDetail);

    void updateMaintenanceLatestId(@Param("maintenance") Maintenance maintenance);

    void updateMaintenanceInfo(@Param("trusteeshipDetail") TrusteeshipDetailVo trusteeshipDetail);

    void updateTrusteeshipDetail(@Param("dto") TrusteeshipDetailVo trusteeshipDetail);

    void updateInfo(@Param("dto") TrusteeshipDetailVo trusteeshipDetailVo);

    void updateMaintenanceLatestIdByTgDtlId(String tgDtlId);
}
